package com.cn.ycy.controller;

import com.cn.ycy.service.JMXBlacklistMBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;

@RestController
public class Acontroller {

  @Value("${app.id}")
  public String appid;

  @Autowired
  private JMXBlacklistMBean jmxBlacklistMBean;

  @GetMapping(path = "/a/get")
  public String get() {
    return "hello world !!! " + appid + " " + Arrays.toString(jmxBlacklistMBean.getBlacklist());
  }


}
